package com.itcast.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Demo1 {
    private static final Logger LOGGER = LoggerFactory.getLogger(Demo1.class);

    public static void main(String[] args) {

        try {
            LOGGER.debug("dbug级别的日志");
            LOGGER.info("info级别的日志");
            LOGGER.warn("warn级别的日志");

        } catch (Exception e) {
            LOGGER.error("error级别的日志");
        }
    }
}
